<script setup>
import banner1 from '@/assets/images/banner1.png'
import banner2 from '@/assets/images/banner2.png'
const bannerList = [
  {
    img: banner1
  },
  {
    img: banner2
  }
]
</script>

<template>
  <div class="app-wrapper">
    <div class="main-container">
      <section class="app-main">
        <div class="app-main-container">
          <div class="app-container">
            <div class="page-banner-wrap">
              <el-carousel>
                <el-carousel-item v-for="item in bannerList" :key="item">
                  <img class="banner-img" :src="item.img" alt="" srcset="" />
                </el-carousel-item>
              </el-carousel>
            </div>
          </div>
        </div>
      </section>
    </div>
  </div>
</template>

<style scoped>
.app-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}
.main-container {
  height: 100%;
}
.app-main {
  height: 100%;
  min-height: 760px;
  width: 100%;
  position: absolute;
  padding-bottom: 40px;
  box-sizing: border-box;
  display: flex;
}
.app-main-container {
  flex: 1;
}
.app-container {
  height: calc(100% + 40px);
  overflow: hidden;
}
.page-banner-wrap {
  height: 61.8%;
}
.banner-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
</style>
